﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace In.Api.Dto.HisWs
{
    /// <summary>
    /// 交易成功后收费处理
    /// </summary>
    public class Response4ClinPayFinish
    {
        /// <summary>
        /// 处理结果代码，0-成功，其他值为失败
        /// </summary>
        public string ResultCode { get; set; }
        /// <summary>
        /// 处理结果描述
        /// 成功为空，失败时返回描述
        /// </summary>
        public string ResultDesc { get; set; }

        /// <summary>
        /// 缴费流水号
        /// </summary>
        public string HosPayId { get; set; }

        /// <summary>
        /// 本次缴费的处方的唯一编号序列
        /// </summary>
        public string RecipeIds { get; set; }

        /// <summary>
        /// 发票号
        /// </summary>
        public string InvoiceNo { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public string TotalAmt { get; set; }

        /// <summary>
        /// 自费金额
        /// </summary>
        public string SelfAmt { get; set; }

        /// <summary>
        /// 社保报销金额
        /// </summary>
        public string SbPayAmt { get; set; }

        /// <summary>
        /// 处方处理备注
        /// </summary>
        public string ResultMark { get; set; }


        /// <summary>
        /// ResultDataList
        /// </summary>
        public List<Response4GetClinPayFinishSubResultData> ResultDataList { get; set; }

        /// <summary>
        /// ExecuteInfo
        /// </summary>
        public List<Response4GetClinPayFinishSubExecuteInfo> ExecuteInfoList { get; set; } 
    }

    public class Response4GetClinPayFinishSubResultData
    {
        /// <summary>
        /// 缴费流水号
        /// </summary>
        public string HosPayId { get; set; }

        /// <summary>
        /// 发票分类
        /// </summary>
        public string FeeType { get; set; }

        /// <summary>
        /// 分类总金额
        /// </summary>
        public string TotalAmt { get; set; }

        /// <summary>
        /// 分类自费金额
        /// </summary>
        public string SelfAmt { get; set; }
    }


    public class Response4GetClinPayFinishSubExecuteInfo
    {
        /// <summary>
        /// 缴费流水号
        /// </summary>
        public string HosPayId { get; set; }

        /// <summary>
        /// 本次缴费的处方的唯一编号序列
        /// </summary>
        public string RecipeIds { get; set; }

        /// <summary>
        /// 科室代码
        /// </summary>
        public string DeptHisCode { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 执行类别
        /// </summary>
        public string ExecType { get; set; }

        /// <summary>
        /// 执行信息
        /// </summary>
        public string Message { get; set; }
    }
}
